<template>
  <div class="recommendList">
    <!-- 右上推荐人 -->
    <!-- <div v-for="(item, index) in selectList" :key="index" class="recommendItem">
        <div class="recommend">
          <img :src="item.img" alt="" class="header-img" />
          <div class="recommendInfo">
            <div class="name">{{ item.name }}</div>
            <div class="fans">{{ item.fans }}粉丝</div>
            <div>{{ item.text }}</div>
          </div>
        </div>
        <div class="follow">+关注</div>
      </div> -->
    <div class="recommendItem">
      <div class="recommend" v-for="(item, index) in allcirclelist" :key="index"  @click="toDetail(item)">
        <div class="title">{{ item.title }}</div>
        <div class="time">
          <Icon type="ios-clock-outline" /> <span>{{ item.ready_stime }}-{{ item.ready_time }}</span>
        </div>
        <div class="bq" v-if="item.status ==0">活动进行中</div>
        <div class="bq" v-if="item.status ==1">活动已结束</div>
      </div>
    </div>
  </div>
</template>

<script>
import { usactivity } from "@/api/community";
import { time } from "@/config/time";
export default {
  props: {
    allcirclelist:{
      type:Array,
      default:()=> []
    }
  },
  data() {
    return {

    };
  },
  mounted() {

  },
  computed: {},
  methods: {

     // 活动详情
     toDetail(item) {
      this.$router.push({
        path: `/active-detail?id=${item.id}`,
        // query: {
        //   id:item.id
        // }
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.recommendList {
  .recommendItem {
    width: 90%;
    height: 200px;
    margin: 0 auto;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    //   border-bottom: 1px solid #ECECEC;
    background-color: rgba(255, 255, 255, 0.26);
    flex-wrap: wrap;
    .recommend {
      display: flex;
      width: 100%;
      height: 60px;
      background: #ffffff;
      display: flex;
      justify-content: flex-start;
      flex-wrap: wrap;
      position: relative;
      border-bottom: 1px solid #ececec;
      .title {
        width: 100%;
        font-size: 8px;
        font-family: Source Han Sans CN;
        font-weight: 500;
        color: #333333;
      }
      span {
        font-size: 7px;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #878583;
      }
      .bq {
        position: absolute;
        right: 0;
        width: 65px;
        height: 17px;
        background: #dcf8ee;
        border-radius: 3px 0px 0px 3px;
        font-size: 7px;
        font-weight: 400;
        color: #35b572;
        text-align: center;
      }
    }
    //   .recommend {
    //     display: flex;
    //     // justify-content: space-between;
    //     .recommendInfo {
    //       .name{
    //           font-weight: bold;
    //       }
    //       .fans {
    //
    //         text-align: center;
    //         font-size: 8px;
    //         border-radius: 3px;
    //       }
    //     }
    //     .header-img {
    //       width: 40px;
    //       height: 40px;
    //       border-radius: 50%;
    //     }
    //   }
    //   .follow {
    //     width: 40px;
    //     height: 20px;
    //     line-height: 20px;
    //     text-align: center;
    //     color: #f00;
    //     margin-right: 20px;
    //     border-radius: 10px;
    //   }
  }
}
</style>
